(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
inc(0) → 0
inc(s(x)) → s(inc(x))
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
quot(0, s(y)) → 0
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
log(x) → log2(x, 0)
log2(x, y) → if(le(x, 0), le(x, s(0)), x, inc(y))
if(true, b, x, y) → log_undefined
if(false, b, x, y) → if2(b, x, y)
if2(true, x, s(y)) → y
if2(false, x, y) → log2(quot(x, s(s(0))), y)
Rewrite Strategy: INNERMOST
(1) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
le(0', y) → true
le(s(x), 0') → false
le(s(x), s(y)) → le(x, y)
inc(0') → 0'
inc(s(x)) → s(inc(x))
minus(0', y) → 0'
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
log(x) → log2(x, 0')
log2(x, y) → if(le(x, 0'), le(x, s(0')), x, inc(y))
if(true, b, x, y) → log_undefined
if(false, b, x, y) → if2(b, x, y)
if2(true, x, s(y)) → y
if2(false, x, y) → log2(quot(x, s(s(0'))), y)
S is empty.
Rewrite Strategy: INNERMOST
(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(4) Obligation:
Innermost TRS:
Rules:
le(0', y) → true
le(s(x), 0') → false
le(s(x), s(y)) → le(x, y)
inc(0') → 0'
inc(s(x)) → s(inc(x))
minus(0', y) → 0'
minus(x, 0') → x
minus(s(x), s(y)) → minus(x, y)
quot(0', s(y)) → 0'
quot(s(x), s(y)) → s(quot(minus(x, y), s(y)))
log(x) → log2(x, 0')
log2(x, y) → if(le(x, 0'), le(x, s(0')), x, inc(y))
if(true, b, x, y) → log_undefined
if(false, b, x, y) → if2(b, x, y)
if2(true, x, s(y)) → y
if2(false, x, y) → log2(quot(x, s(s(0'))), y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
(5) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
le,
inc,
minus,
quot,
log2They will be analysed ascendingly in the following order:
le < log2
inc < log2
minus < quot
quot < log2
(6) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
The following defined symbols remain to be analysed:
le, inc, minus, quot, log2
They will be analysed ascendingly in the following order:
le < log2
inc < log2
minus < quot
quot < log2
(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
le(
gen_0':s:log_undefined3_0(
n5_0),
gen_0':s:log_undefined3_0(
n5_0)) →
true, rt ∈ Ω(1 + n5
0)
Induction Base:
le(gen_0':s:log_undefined3_0(0), gen_0':s:log_undefined3_0(0)) →RΩ(1)
true
Induction Step:
le(gen_0':s:log_undefined3_0(+(n5_0, 1)), gen_0':s:log_undefined3_0(+(n5_0, 1))) →RΩ(1)
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) →IH
true
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(8) Complex Obligation (BEST)
(9) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
The following defined symbols remain to be analysed:
inc, minus, quot, log2
They will be analysed ascendingly in the following order:
inc < log2
minus < quot
quot < log2
(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
inc(
gen_0':s:log_undefined3_0(
n390_0)) →
gen_0':s:log_undefined3_0(
n390_0), rt ∈ Ω(1 + n390
0)
Induction Base:
inc(gen_0':s:log_undefined3_0(0)) →RΩ(1)
0'
Induction Step:
inc(gen_0':s:log_undefined3_0(+(n390_0, 1))) →RΩ(1)
s(inc(gen_0':s:log_undefined3_0(n390_0))) →IH
s(gen_0':s:log_undefined3_0(c391_0))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(11) Complex Obligation (BEST)
(12) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
inc(gen_0':s:log_undefined3_0(n390_0)) → gen_0':s:log_undefined3_0(n390_0), rt ∈ Ω(1 + n3900)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
The following defined symbols remain to be analysed:
minus, quot, log2
They will be analysed ascendingly in the following order:
minus < quot
quot < log2
(13) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
minus(
gen_0':s:log_undefined3_0(
n656_0),
gen_0':s:log_undefined3_0(
n656_0)) →
gen_0':s:log_undefined3_0(
0), rt ∈ Ω(1 + n656
0)
Induction Base:
minus(gen_0':s:log_undefined3_0(0), gen_0':s:log_undefined3_0(0)) →RΩ(1)
0'
Induction Step:
minus(gen_0':s:log_undefined3_0(+(n656_0, 1)), gen_0':s:log_undefined3_0(+(n656_0, 1))) →RΩ(1)
minus(gen_0':s:log_undefined3_0(n656_0), gen_0':s:log_undefined3_0(n656_0)) →IH
gen_0':s:log_undefined3_0(0)
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(14) Complex Obligation (BEST)
(15) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
inc(gen_0':s:log_undefined3_0(n390_0)) → gen_0':s:log_undefined3_0(n390_0), rt ∈ Ω(1 + n3900)
minus(gen_0':s:log_undefined3_0(n656_0), gen_0':s:log_undefined3_0(n656_0)) → gen_0':s:log_undefined3_0(0), rt ∈ Ω(1 + n6560)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
The following defined symbols remain to be analysed:
quot, log2
They will be analysed ascendingly in the following order:
quot < log2
(16) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol quot.
(17) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
inc(gen_0':s:log_undefined3_0(n390_0)) → gen_0':s:log_undefined3_0(n390_0), rt ∈ Ω(1 + n3900)
minus(gen_0':s:log_undefined3_0(n656_0), gen_0':s:log_undefined3_0(n656_0)) → gen_0':s:log_undefined3_0(0), rt ∈ Ω(1 + n6560)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
The following defined symbols remain to be analysed:
log2
(18) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol log2.
(19) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
inc(gen_0':s:log_undefined3_0(n390_0)) → gen_0':s:log_undefined3_0(n390_0), rt ∈ Ω(1 + n3900)
minus(gen_0':s:log_undefined3_0(n656_0), gen_0':s:log_undefined3_0(n656_0)) → gen_0':s:log_undefined3_0(0), rt ∈ Ω(1 + n6560)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
No more defined symbols left to analyse.
(20) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
(21) BOUNDS(n^1, INF)
(22) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
inc(gen_0':s:log_undefined3_0(n390_0)) → gen_0':s:log_undefined3_0(n390_0), rt ∈ Ω(1 + n3900)
minus(gen_0':s:log_undefined3_0(n656_0), gen_0':s:log_undefined3_0(n656_0)) → gen_0':s:log_undefined3_0(0), rt ∈ Ω(1 + n6560)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
No more defined symbols left to analyse.
(23) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
(24) BOUNDS(n^1, INF)
(25) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
inc(gen_0':s:log_undefined3_0(n390_0)) → gen_0':s:log_undefined3_0(n390_0), rt ∈ Ω(1 + n3900)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
No more defined symbols left to analyse.
(26) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
(27) BOUNDS(n^1, INF)
(28) Obligation:
Innermost TRS:
Rules:
le(
0',
y) →
truele(
s(
x),
0') →
falsele(
s(
x),
s(
y)) →
le(
x,
y)
inc(
0') →
0'inc(
s(
x)) →
s(
inc(
x))
minus(
0',
y) →
0'minus(
x,
0') →
xminus(
s(
x),
s(
y)) →
minus(
x,
y)
quot(
0',
s(
y)) →
0'quot(
s(
x),
s(
y)) →
s(
quot(
minus(
x,
y),
s(
y)))
log(
x) →
log2(
x,
0')
log2(
x,
y) →
if(
le(
x,
0'),
le(
x,
s(
0')),
x,
inc(
y))
if(
true,
b,
x,
y) →
log_undefinedif(
false,
b,
x,
y) →
if2(
b,
x,
y)
if2(
true,
x,
s(
y)) →
yif2(
false,
x,
y) →
log2(
quot(
x,
s(
s(
0'))),
y)
Types:
le :: 0':s:log_undefined → 0':s:log_undefined → true:false
0' :: 0':s:log_undefined
true :: true:false
s :: 0':s:log_undefined → 0':s:log_undefined
false :: true:false
inc :: 0':s:log_undefined → 0':s:log_undefined
minus :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
quot :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log :: 0':s:log_undefined → 0':s:log_undefined
log2 :: 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
if :: true:false → true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
log_undefined :: 0':s:log_undefined
if2 :: true:false → 0':s:log_undefined → 0':s:log_undefined → 0':s:log_undefined
hole_true:false1_0 :: true:false
hole_0':s:log_undefined2_0 :: 0':s:log_undefined
gen_0':s:log_undefined3_0 :: Nat → 0':s:log_undefined
Lemmas:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
Generator Equations:
gen_0':s:log_undefined3_0(0) ⇔ 0'
gen_0':s:log_undefined3_0(+(x, 1)) ⇔ s(gen_0':s:log_undefined3_0(x))
No more defined symbols left to analyse.
(29) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
le(gen_0':s:log_undefined3_0(n5_0), gen_0':s:log_undefined3_0(n5_0)) → true, rt ∈ Ω(1 + n50)
(30) BOUNDS(n^1, INF)